package cn.edu.ctbu.service.impl;
import cn.edu.ctbu.domain.Admin;
import cn.edu.ctbu.service.AdminService;
import cn.edu.ctbu.repository.AdminRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminRepository adminRepository;

    @Override
    public Admin adminLogin(String AdminId, String AdminPass)
    {
        return adminRepository.selectAdminByIdAndPass(AdminId,AdminPass);
    }
}
